package com.jiao.mydd.config;

import org.springframework.jdbc.datasource.lookup.AbstractRoutingDataSource;

/**
 * 动态数据源配置
 * @author
 *
 */
public class DynamicDataSource extends AbstractRoutingDataSource{

	@Override
	protected Object determineCurrentLookupKey() {
		String lookupKey = DynamicDataSourceHolder.getDataSource();
	    return lookupKey;
	}
}
